/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package messgui.classes;

import java.util.List;
import javax.swing.DefaultListModel;
import messengerclient.observers.ObsTable;
import messengercommon.person.Contact;

/**
 *
 * @author Samus
 */
public class ContactList extends DefaultListModel implements ObsTable {

    public ContactList() {
        super();
    }

    public void receiveContacts(List<Contact> contacts) {
        super.clear();
        for (Contact c : contacts) {
            super.addElement(c);
        }
    }
}
